package cn.ad.exception;

/***
 * 模版异常类
 * 
 * @author yujuan.zhang
 * @from 2016-07-14
 * @since ADX V1.0
 *
 */
public class AdTemplateValidateException extends ValidateException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8843682789179194763L;

	public static enum ErrorCode implements BaseErrorCode {
		ADTEMPLATE_REPEAT(20802, "AdTemplate Name Repeat in platform");

		private int value;

		private String desc;

		private ErrorCode(int value, String desc) {
			this.value = value;
			this.desc = desc;
		}

		public int getValue() {
			return value;
		}

		public String getDesc() {
			return desc;
		}
	}

	public AdTemplateValidateException(BaseErrorCode code) {
		super(code);
	}

	public AdTemplateValidateException() {
		super();
	}

	public AdTemplateValidateException(String message, Throwable cause, boolean enableSuppression,
                                       boolean writableStackTrace) {
		super(message, cause, enableSuppression, writableStackTrace);
	}

	public AdTemplateValidateException(String message, Throwable cause) {
		super(message, cause);
	}

	public AdTemplateValidateException(String message) {
		super(message);
	}

	public AdTemplateValidateException(Throwable cause) {
		super(cause);
	}

}
